import http from "./http";

const addCart = params => http.post('/shop-cart', params);

const modifyCart= params => http.put('/shop-cart', params);

const getCart = params => http.get('/shop-cart', { params });

const deleteCartItem = id => http.delete(`/shop-cart/${id}`);

const getByCartItemIds = params => http.get('/shop-cart/settle', { params });
export default {
    addCart,
    modifyCart,
    getCart,
    deleteCartItem,
    getByCartItemIds
};
